# Directories
FLEX_SDK = /usr/local/src/FlexSDK
FLASH_PLAYER = /usr/local/bin/flashplayerdebugger

# Sources 
MAIN = src/Main.as

# SWF output directory
SWF = swf/LastSpaceDefender.swf

all:
	$(FLEX_SDK)/bin/mxmlc -sp flixel \
	-library-path $(FLEX_SDK)/frameworks/libs/flex.swc \
	-o $(SWF) \
	-debug \
	-verbose-stacktraces \
	-incremental \
	-- $(MAIN)

release:	
	$(FLEX_SDK)/bin/mxmlc -sp flixel \
	-library-path $(FLEX_SDK)/frameworks/libs/flex.swc \
	-o $(SWF) \
	-- $(MAIN)

play:
	$(FLASH_PLAYER) $(SWF)

clean:
	rm -rf $(SWF) $(SWF).cache
